home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n22.arc / MWHERE < prev    next >
Text File  |  1990-12-04  |  1KB  |  53 lines

  1. ############################################################################
  2. #                                                                          #
  3. #  MAKEFILE for the DESKTOP                                                #
  4. #                                                                          #
  5. ############################################################################
  6.  
  7. # Compiler is 'M' for Microsoft, 'T' for Borland Turbo C
  8. COMPILER = M
  9. # Model is 
  10. #   1) Microsoft C - 'M' for Medium, 'L' for Large
  11. #   2) Turbo C - 'm' for medium, 'l' for large
  12. MODEL = L
  13.  
  14. # Microsoft C macros
  15. CC = cl
  16. OPT = /Oait
  17. DEBUG = /Od /Zi
  18. CFLAGS = /c /A$(MODEL) /J /DMSC /DDOS /Ic:\mewel /DMEWEL $(OPT)
  19. ASM = masm 
  20. # LMODEL should be 1 if you want large data
  21. ASMFLAGS = /DLMODEL=0 /DTC=0
  22. LIB = lib
  23. LINK = link
  24. LFLAGS = /packcode /f /stack:8192
  25.  
  26. # We tack the compiler and model onto the end of the library name, so
  27. # the library for Borland's Turbo C, medium model would be called WINLIBTM.LIB
  28.  
  29. # Inference rules for C and ASM files
  30.  
  31. .c.obj :
  32.     $(CC) $(CFLAGS) $*.c
  33.  
  34. .asm.obj :
  35.     $(ASM) $(ASMFLAGS) $*;
  36.  
  37.  
  38. DEMO = mwhere
  39. OBJS = winwhere.obj
  40. OBJ  = winwhere
  41.  
  42. all         :   $(OBJS)
  43.  
  44. winwhere.obj   :  winwhere.c
  45.  
  46. $(DEMO).res  :  $(DEMO).rc
  47.     c:\mewel\rc $(DEMO).rc
  48.  
  49. $(DEMO).exe :   $(OBJS) $(DEMO).res
  50. # Microsoft
  51.   $(LINK) $(LFLAGS) $(OBJ),$(DEMO),nul,c:\mewel\winlibml;
  52.   c:\mewel\rc $(DEMO).res
  53.